import 'package:get/get.dart';
import 'package:jinke/page/home/index.dart';
import 'package:jinke/page/login/view.dart';
import 'package:jinke/page/pro_list/subs/pro_detail/subs/pro_instruction/instruction_detail/view.dart';
import 'package:jinke/page/pro_list/subs/pro_detail/subs/pro_inventory/subs/inventory_create/index.dart';
import 'package:jinke/page/pro_list/subs/pro_detail/subs/pro_question_exsit/subs/create_ques/index.dart';

import '../../page/attract/edit_attract/view.dart';
import '../../page/pro_list/subs/pro_detail/main/index.dart';
import 'package:jinke/page/me/bindings.dart';

import '../../page/me/view.dart';
import '../../page/pro_list/subs/pro_detail/subs/pro_instruction/make_instruction/view.dart';
import '../../page/pro_list/subs/pro_open/main/index.dart';
import '../../page/report/report_detail/view.dart';
import '../../page/splash/view.dart';

part 'route_path.dart';

class RouterPages {
  static final List<GetPage> getPages = [
    GetPage(
      name: RouterPath.splash,
      page: () => SplashPage(),
    ),
    GetPage(
      name: RouterPath.login,
      page: () => LoginPage(),
    ),
    GetPage(
      name: RouterPath.reportDetailPage,
      page: () => ReportDetailPage(),
    ),

    GetPage(
      name: RouterPath.editAttractPage,
      page: () => EditAttractPage(),
    ),
    GetPage(
      name: RouterPath.instruction_detail,
      page: () => Instruction_detailPage(),
    ),
    GetPage(
      name: RouterPath.make_instructionPage,
      page: () => Make_instructionPage(),
    ),

    GetPage(
      name: RouterPath.me,
      page: () => MePage(),
      binding: MeBinding(),
    ),
    GetPage(
      name: RouterPath.main,
      page: () => const HomePage(),
      binding: HomeBinding(),
      transition: Transition.noTransition,
    ),

    //MARK: 项目列表
    ///项目详情
    GetPage(
      name: RouterPath.pro_detail,
      page: () => const ProDetailPage(),
      binding: ProDetailBinding(),
    ),

    ///项目创建
    GetPage(
      name: RouterPath.pro_open,
      page: () => const ProOpenPage(),
      binding: ProOpenBinding(),
    ),

    ///问题创建
    GetPage(
      name: RouterPath.create_ques,
      page: () => const CreateQuesPage(),
      binding: CreateQuesBinding(),
    ),

    ///任务创建
    GetPage(
      name: RouterPath.create_task,
      page: () => const InventoryCreatePage(),
      binding: InventoryCreateBinding(),
    ),
  ];
}
